package com.dingli.entity;

import java.util.Date;

/**
 *实体类
 */
public class Card {
    /**
     * 卡号
     */
    private int cid;
    /**
     * 卡类型
     */
    private String type;
    /**
     * 余额
     */
    private double account;
    /**
     * 开卡时间
     */
    private Date createTime;
    /**
     * 用户id
     */
    private int uid;
    /**
     * 账户信息
     */
    private User user;
    /**
     * 无参构造
     */
    public Card() {
    }
    /**
     *有参构造
     */
    public Card(int cid, String type, double account, Date createTime, int uid) {
        this.cid = cid;
        this.type = type;
        this.account = account;
        this.createTime = createTime;
        this.uid = uid;



    }
    /**
     *get、set方法
     */
    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getAccount() {
        return account;
    }

    public void setAccount(double account) {
        this.account = account;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    /**
     *to string 方法
     */
    @Override
    public String toString() {
        return "Card{" +
                "cid=" + cid +
                ", type='" + type + '\'' +
                ", account=" + account +
                ", createTime=" + createTime +
                ", uid=" + uid +
                '}';
    }
}
